﻿@model ProjectTracker.Library.ProjectResourceEdit
@{
  ViewBag.Title = string.Format("Edit assignment for {0}", Model.FullName);
}
<h2>@ViewBag.Title</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
  @Html.ValidationSummary(true)
  <fieldset>
    <legend>Project Resource</legend>

    <div class="editor-label">
      @Html.LabelFor(model => model.Role)
    </div>
    <div class="editor-field">
      @Html.DropDownListFor(model => model.Role, (SelectList)ViewData["Roles"])
    </div>
    <p>
      <input type="submit" value="Save" />
    </p>
  </fieldset>
}
<div>
  @Html.ActionLink("Back to List", "Index", new { id = ViewData["ProjectId"] })
</div>
